package cn.assumejson.springframework.aop.aspectj;

import cn.assumejson.springframework.aop.ClassFilter;

/**
 * @author gang.Li
 * @version 1.0
 * @since 1.0 2021/12/9 20:49
 */
public class TrueClassFilter implements ClassFilter {

    public static final ClassFilter INSTANCE = new TrueClassFilter();

    private TrueClassFilter() {
    }

    @Override
    public boolean matches(Class<?> clazz) {
        return true;
    }

    private Object readResolve() {
        return INSTANCE;
    }

    @Override
    public String toString() {
        return "ClassFilter.TRUE";
    }

}
